package com.example.dao.course;

import com.example.pojo.Course;
import com.example.pojo.CourseRecord;
import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseDao {

    List<Course> getTableData(Course course);
    boolean UpdateStatus(@Param("id") int id, @Param("num") int num);
    Course getCourseById(int courseId);
    boolean deleteCourse(int id);
    List<CourseRecord> getRecordByCourseId(int CourseId);
    List<User> getUser(String name);
    boolean updateCourse(Course course);
    boolean addCourse(Course course);
}
